package com.ikaros.dao;

import com.ikaros.entity.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 订单详情
 * Created by Ikaros on 2017/9/24.
 */
public interface OrderDetailDao extends JpaRepository<OrderDetail,String>{
    /**
     * 一个订单id对应多个订单详情
     * @param orderId
     * @return
     */
    List<OrderDetail> findByOrderId(String orderId);
}
